package com.heima.datasync.controller;

import com.heima.datasync.service.EsDataService;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/esdata")
public class DataSyncController {
    @Resource
    EsDataService esDataService;

    @GetMapping("/init")
    public ResponseResult esDataInit() {
        return esDataService.dataInit();
    }
}